﻿using System;
using System.IO;

namespace CabConfigProvisioning
{
    public class FciGenericActions : FciAbstractActions
    {
        protected FileInfo _cabFile;

        public FciGenericActions(FileInfo cabFile)
        {
            _cabFile = cabFile;
        }

        public override IntPtr FileOpen(string sFilePath, int oflag, int pmode, ref int nError)
        {
            return base.FileOpen(string.IsNullOrEmpty(sFilePath) ? _cabFile.FullName : sFilePath, oflag, pmode, ref nError);
        }

    }
}
